﻿namespace Vboot.App.De;

[SugarTable("de_supp_att", TableDescription = "附件表")]
public class DeSuppAtt
{
    [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, Length = 32)]
    public string id { get; set; }

    [SugarColumn(ColumnDescription = "地址", IsNullable = true, Length = 64)]
    public string addre { get; set; }

    [SugarColumn(ColumnDescription = "前缀名称", IsNullable = true, Length = 128)]
    public string pname { get; set; }

    [SugarColumn(ColumnDescription = "后缀名称", IsNullable = true, Length = 36)]
    public string sname { get; set; }

    [SugarColumn(ColumnDescription = "大小", IsNullable = true, Length = 36)]
    public string zsize { get; set; }

    [SugarColumn(IsIgnore = true)] public string zimg { get; set; }

    [SugarColumn(ColumnDescription = "文件全名", IsNullable = true, Length = 256)]
    public string name { get; set; }

    [SugarColumn(ColumnDescription = "文件链接地址", IsNullable = true, Length = 256)]
    public string link { get; set; }
    
    /// <summary>
    /// 供应商ID
    /// </summary>
    [SugarColumn(ColumnDescription = "供应商ID", IsNullable = true, Length = 36)]
    public string maiid { get; set; }
}